package ClassDay5.IN;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public interface UserMoneyIe {
    @Update("update usermoney set money=money+#{money} where name=#{name}")
    public void InMoney(@Param("money")int money,@Param("name")String name);
    @Update("update usermoney set money=money-#{money} where name=#{name}")
    public void OutMoney(@Param("money")int money,@Param("name")String name);
}
